Skip to content

Fix problem with \vert becoming stretchy after enrichment. (mathjax/MathJax#3530)#1440

Merged
dpvc merged 1 commit intodevelopfrom
issue3530
Mar 29, 2026
Merged

Fix problem with \vert becoming stretchy after enrichment. (mathjax/MathJax#3530)#1440
dpvc merged 1 commit intodevelopfrom
issue3530

Conversation

@dpvc
Copy link
Copy Markdown
Member

@dpvc dpvc commented Feb 27, 2026

This PR fixes a problem with \vert losing its stretchy="false" attribute when in infix form (where this is the default), but after semantic enrichment, being in pre- or postfix position (where it is not). This is similar to #1426, which handled explicit | characters, but missed handling \vert. The tests were updated to account for the difference.

An alternative to this (and #1426) would be to adjust the filter that removes redundant attributes to leave explicit stretchy attributes when the mo content is |. If you prefer that, I will redo this PR.

Resolves issue mathjax/MathJax#3530

@dpvc dpvc requested a review from zorkow February 27, 2026 13:06
@dpvc dpvc added this to the v4.2 milestone Feb 27, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.49%. Comparing base (5629a28) to head (4265c4b).
⚠️ Report is 19 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1440   +/-   ##
========================================
  Coverage    86.49%   86.49%           
========================================
  Files          340      340           
  Lines        86044    86047    +3     
  Branches      4833     4834    +1     
========================================
+ Hits         74425    74428    +3     
+ Misses       11619    11595   -24     
- Partials         0       24   +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit f10eb33 into develop Mar 29, 2026
3 checks passed
@dpvc dpvc deleted the issue3530 branch March 29, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants